<?
require_once 'config.php';
$ctl_id = getValue('iPro','int','GET',0);
$arr_catalog = db_array("SELECT * FROM catalog WHERE ctl_active = 1 ORDER BY ctl_order ASC, ctl_id DESC");

?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="vi" lang="vi" xmlns:og="http://ogp.me/ns#" xmlns:fb="">
<head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   <link type="image/x-icon" href="/favicon.ico" rel="icon" />
   
   <title>E - Catalog</title>
   <meta name="description" content=""/>
   <meta name="keywords" content=""/>
   <meta name="AUTHOR" content="Bảo hộ lao động Đông Anh" />
   <meta name="COPYRIGHT" content="Sudo.vn" />
   <meta name="ROBOTS" content="INDEX, FOLLOW" />
   <meta name="RATING" content="GENERAL" />
   
   <meta property="og:title" content="" />
   <meta property="og:type" content="website" />
   <meta property="og:url" content="" />
   <meta property="og:image" content="" />
   <meta property="og:site_name" content="" />
   <meta property="og:description" content=" />
   <meta property="fb:admins" content="" />
   <meta property="fb:app_id" content=""/> 
   <!-- css -->   
   <link rel="stylesheet" type="text/css" href="<?=TEMPLATE_PATH?>css/home.css" />	
   <link rel="stylesheet" type="text/css" href="<?=TEMPLATE_PATH?>css/news.css" />
   <!-- js -->
   <script type="text/javascript" src="<?=TEMPLATE_PATH?>js/jquery-1.9.0.min.js"></script>
   <script type="text/javascript" src="<?=TEMPLATE_PATH?>js/common.js"></script>
</head>
<body>   
   <? include('view/common/vic_header.php');?>
   <div class="global_container">
      <div class="slider">
         <?include('view/common/vic_slide.php')?>
      </div>
      <div class="content_wrap">
         <div class="content_left">
            <?include('view/common/vic_content_left.php')?>
            
         </div>
         <div class="content_right">
            <h1 class="pro_hot_title">
                  E - CATALOG
               </h1>
           <div class="news_detail">
            <?php
            foreach($arr_catalog as $ctl_item) {
               ?>
               <div class="news-item">
                  <div class="thumb" style="width: 92px;">
                     <div><a href="/download-catalog/<?=$ctl_item['ctl_id']?>.html" title="<?=$ctl_item['ctl_title']?>"><img alt="<?=$ctl_item['ctl_title']?>" src="<?=catalog_img.$ctl_item['ctl_image']?>" style="max-width: 92px;"/></a></div>
                  </div><!--end: .thumb-->
                  <div class="n-teaser">
                     <div class="title"><a href="/download-catalog/<?=$ctl_item['ctl_id']?>.html" title="<?=$ctl_item['ctl_title']?>"><?=$ctl_item['ctl_title']?></a></div>
                     <div class="date"><?=date('d/m/y, h:i a')?></div>
                     <div class="teaser"><?=$ctl_item['ctl_description']?></div>
                  </div><!--end: .n-teaser-->
                  <div class="clear"></div>
               </div>
               <?php
            }
            
            ?>
            </div>
         </div>
      </div>
      <?include('view/common/vic_social_networking.php');?>
   </div>
   <?include('view/common/vic_footer.php');?>
</body>
</html>